<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title>
</title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="css/ui-base.css">
<link rel="stylesheet" href="css/ui-box.css">
<link rel="stylesheet" href="css/ui-color.css">
<link rel="stylesheet" href="css/ui-img.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/zy_tmpl.js"></script>
<script src="js/privateLetter.js"></script>
<script src="js/json.js"></script>
<script src="js/jquery-2.0.0.js"></script>
</head>
<body class="um-vp" ontouchstart>
	
</body>
<style>
	.text-c{
		text-align:left;
		height:3.8em;
		 line-height:3.8em;
	}
</style>
<script>
	
zy_init();
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("1");
		uexWindow.showBounceView("0","#FFF","0");
		uexWindow.showBounceView("1","#FFF","0");
	}
	selectFriend();
}


//下拉刷新部分的函数
 
 function set_bounce(){
	uexWindow.setBounce("1");
    setUpstyle("最后一次刷新时间:xxxx");
    uexWindow.showBounceView("0","rgba(142,201,96,30)","1");
    uexWindow.showBounceView("1","rgba(142,201,96,30)","0");
    uexWindow.notifyBounceEvent('0','1');
    uexWindow.onBounceStateChange = function(type,state){
      if(type == '0' && state == "2"){
	  	//alert("1");
		 loadData();
      } 
	  //alert("2");
	 
    }
}

function refreshClear(){
		var divAll=$("body>div");
		divAll.remove();
		
	}
	
	 function loadData(){
    //uexWindow.toast(1,5,"loading....",2000);
    //2秒后，恢复弹动初始状态
	refreshClear();
	window.localStorage.setItem("recentContactOffset",0);
	//alert("4");
	pullRecentContact();
	//alert("5");
    setTimeout(function(){uexWindow.resetBounceView('0');},1500);
  }
   function setUpstyle(ltext){
    var json_p = '{"imagePath":"res://refresh_upicon.png","textColor":"#FFF","levelText":"'+"最后一次刷新时间"+window.localStorage["refreshTimeWeibo"]+'","pullToReloadText":"下拉可以刷新","releaseToReloadText":"松开即可刷新","loadingText":"正在刷新中..."}';
    uexWindow.setBounceParams('0',json_p);
	//alert("3");
  }

</script>
</html>
